/**
 * Created by Administrator on 2015/9/6.
 */
var express = require('express');
var router = express.Router();
var adminService = require('../src/service/adminService');
/**活动申请列表*/
router.get('/examappr/examAppr', function(req, res, next) {
    adminService.queryAllAdmit(req, res,function(result,param){
        res.render('EJS/admin/examappr/examAppr', { examApprs : result ,param:param});
    });
});
/**活动申请详细信息*/
router.get('/examappr/examApprDetail', function (req, res, next) {
    res.render('EJS/admin/examappr/examApprDetail');
});
/**改变活动邀请/报名的状态*/
router.get('/examappr/changeAdmitStatus', function(req, res, next) {
    adminService.changeAdmitStatus(req,function(result){
        res.redirect('/admin/examappr/examAppr');
    });
});
/**取消邀请客户*/
router.get('/examappr/cancelInvited', function(req, res, next) {
    adminService.cancelInvited(req,function(result){
        res.redirect('/admin/examappr/examAppr');
    });
});
module.exports = router;